package oceanlife;
import java.awt.geom.Ellipse2D;


public class AgentPositionGraphic extends Ellipse2D.Double {
			    
	public AgentPositionGraphic(double xCoord, double yCoord, double xSize, double ySize){
		update(xCoord,yCoord,xSize,ySize);
	}
	
	public void update(double xCoord, double yCoord, double xSize, double ySize){
		double scale = OLSet.getDouble("scale");
		this.height = xSize * scale;
		this.width = ySize * scale;
		this.x = (xCoord * scale-(width/2));
		this.y = (yCoord * scale-(height/2));
	}
}